package com.uduemc.biso.web.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.uduemc.biso.core.extities.center.SysHostType;
import com.uduemc.biso.core.utils.RestResult;
import com.uduemc.biso.web.api.server.HosttypeService;

@RestController
@RequestMapping("/api/hosttype")
public class HosttypeController {

	@Autowired
	private HosttypeService hosttypeServiceImpl;

	@GetMapping("/find-all")
	public RestResult findAll() {
		return RestResult.ok(hosttypeServiceImpl.findAll(), SysHostType.class.toString(), true);
	}

}
